<?php
class mysql
{
	private static $url = "127.0.0.1";
	private static $user = "root";
	private static $password = "aa8104367";
	private static $tab = "lastcitadel";
	
	public static function run($command)
	{
		$con = mysql_connect(mysql::$url,mysql::$user,mysql::$password); 
		
		mysql_query("SET NAMES UTF8");
		mysql_query("SET CHARACTER SET UTF8");
		mysql_query("SET CHARACTER_SET_RESULTS=UTF8'");
		mysql_select_db(mysql::$tab, $con); 
		$data = mysql_query($command,$con); 
		mysql_close($con);
		
		return $data;
	}
	
}
?>